package com.zzh.framework.register;

import java.util.HashMap;
import java.util.Map;

/**
 * @author：zhangzhanheng
 * @createTime: 2021/8/3  5:23 下午
 * @desc: 本地注册
 * @version: 1.0.0
 **/
public class LocalRegister {
    private static Map<String,Class> map = new HashMap<>();

    public static void register(String interfaceName,Class implClass) {
        map.put(interfaceName,implClass);
    }
    public static Class get(String interfaceName) {
        return map.get(interfaceName);
    }
}
